﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrativo/MasterAdministrativo/Administrativo.Master" AutoEventWireup="true" CodeBehind="AtualizarQuadrante.aspx.cs" 
    Inherits="Acamps.Web.Administrativo.AtualizarQuadrante" ClientIDMode="Static" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $().ready(function() {
            $("#ddlFuncao").change(function () {
                $("#tribo").hide();
                if ($(this).val() == "a1388200-4829-46fa-82dd-8d9d1be17cd0") {
                    $("#tribo").show();
                }
            });
        });
    </script>
    <style type="text/css">
        input[type="text"]
        {
            width: 300px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="col7 left">
        <div style="margin-left: 10px;">
            <span>Acampamento:</span>
            <asp:DropDownList runat="server" ID="ddlAcampamentos" Width="100%" obrigatorio="equipe" OnSelectedIndexChanged="ddlAcampamentos_OnSelectedIndexChanged" AutoPostBack="True" />
        </div>
        
        <div class="divFicha">
            <span>
                Equipe:
                <asp:DropDownList runat="server" ID="ddlEquipe" obrigatorio="equipe"/>
            </span>
            <span>
                Funcões:
                <asp:DropDownList runat="server" ID="ddlFuncao" obrigatorio="equipe"/>
            </span>
            <span id="tribo" style="display:none;">
                Tribo:
                <asp:DropDownList runat="server" ID="ddlTribo" />
            </span>
            <asp:Button runat="server" ID="btnEquipe" Text="Salvar" style="margin-left: 45%;" 
                CssClass="btn btn-primary" OnClick="btnEquipe_OnClick" validar="equipe"/>
        </div>
        <div style="overflow: auto; max-height: 500px; margin-top: 10px;">
            <asp:Repeater runat="server" ID="rptEquipe">
                <HeaderTemplate>
                    <table class="gridLista">
                        <tr>
                            <th>
                                Ação
                            </th>
                            <th>
                                Nome
                            </th>
                            <th>
                                Função
                            </th>
                             <th>
                                Tribo
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td><a href='<%# string.Format("AtualizarQuadrante.aspx?idequipe={0}",Eval("Id")) %>'><i
                            class="icon-white icon-edit"></i></a></td>
                        <td><%#Eval("Campista.Nome") %></td>
                        <td><%#Eval("Funcao.Descricao") %></td>
                        <td><%#Eval("Tribo.Descricao") %></td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
        </div>

    </div>

    <div class="line2">
    </div>

    <div class="col9" style="overflow: auto; max-height: 90%;" id="dvFormulario" runat="server">
        <asp:Repeater ID="rptDados" runat="server">
            <HeaderTemplate>
                <table style="width: 100%;" class="gridLista">
                    <th style="width: 30px;">Ação
                    </th>

                    <th>Nome
                    </th>
                    <th>Status
                    </th>
                    <th>E-mail
                    </th>
            </HeaderTemplate>
            <ItemTemplate>
                <tr class='LinhaCheckbox'>
                    <td>
                        <a href='<%# string.Format("AcompanhamentoFichas.aspx?id={0}",Eval("Id")) %>'><i
                            class="icon-white icon-edit"></i></a>
                    </td>
                    <td>
                        <%# Eval("Campista.Nome") %>
                    </td>
                    <td>
                        <%# Eval("TipoParticipacao.Descricao")%>
                    </td>
                    <td>
                        <%# Eval("Campista.Email") %>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
